using System;
using System.Configuration;

namespace OF.Security.Utils
{
	public sealed class AssemblyMappingSettings : ConfigurationSection
	{
		[ConfigurationProperty("mapping")]
		public AssemblyMappingConfigurationElementCollection Mapping
		{
			get
			{
				return (AssemblyMappingConfigurationElementCollection)base["mapping"];
			}
		}

		private AssemblyMappingSettings()
		{
		}

		public static AssemblyMappingSettings GetConfig()
		{
			AssemblyMappingSettings assemblyMappingSettings = (AssemblyMappingSettings)ConfigurationManager.GetSection("assemblyMappingSettings");
			if (assemblyMappingSettings == null)
			{
				assemblyMappingSettings = new AssemblyMappingSettings();
			}
			return assemblyMappingSettings;
		}
	}
}
